<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BrowserProduct extends Model
{
    protected $table = 'browser_product';
    //设置主键值
    protected $primaryKey = 'id';
    public $timestamps = true;
    protected $guarded = [];

    public function product()
    {
        return $this->hasOne(Product::class, 'id', 'product_id');
    }
}
